package com.shaozi.nc.web.beans;

import java.io.Serializable;
import java.util.List;
import com.google.gson.annotations.SerializedName;
import com.shaozi.utils.common.MD5Utils;

public class GenChatGroupsBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4114273902747419557L;

	private String companyId;

	private List<DeptGroupBean> deptGroups;

	public GenChatGroupsBean() {

	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public List<DeptGroupBean> getDeptGroups() {
		return deptGroups;
	}

	public void setDeptGroups(List<DeptGroupBean> deptGroups) {
		this.deptGroups = deptGroups;
	}

	public String genDeptGroupId(String deptId) {
		return MD5Utils.getMD5(String.format("%s.%s", companyId, deptId).getBytes());
	}
}
